<template>
	<view class="">
		<headerCustom></headerCustom>
		<view class="page">
			<view class="page_title">
				<view class="text">
					候诊室
				</view>
				<view class="subtitle">
					方便就诊和查看您的问诊信息
				</view>
			</view>
			<view class="shortcuts_group">
				<view class="shortcuts_item" v-for="(item,index) in shortcutsList" :key="index" :style="{backgroundColor:item.backgroundColor}">
					<view class="item_info">
						<image class="item_icon" :src="`../../static/icon/room/${item.fileName}`" mode="widthFix"></image>
						<view class="item_title">
							<view class="text">
								{{item.title}}
							</view>
							<view class="subtitle">
								{{item.subTitle}}
							</view>
						</view>
					</view>
					<view class="item_more">
						<view class="icon" :style="{backgroundColor:item.MoreColor}">
							<uni-icons class="icon" type="right" size="12" color="#fff"></uni-icons>
						</view>
					</view>
				</view>

			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				shortcutsList: [{
					backgroundColor: '#EDF7F5',
					MoreColor: '#CBF1D9',
					title: "我的问诊",
					subTitle: "快速查看我的问诊记录",
					router: '',
					fileName: 'wdwz_icon.png'
				}, {
					backgroundColor: '#FDF8F0',
					MoreColor: '#FBE8CD',
					title: "我的处方",
					subTitle: "查看我医生开具的处方",
					router: '',
					fileName: 'wdcf_icon.png'
				}, {
					backgroundColor: '#F4F7FF',
					MoreColor: '#BFCFFE',
					title: "我的医生",
					subTitle: "查看我问诊过的医生",
					router: '',
					fileName: 'wdys_icon.png'
				}]
			}
		}
	}
</script>

<style lang="scss" scoped>
	.page {
		background-color: #fff;

		.page_title {
			.text {
				font-weight: bold;
				font-size: 40rpx;
				color: #333333;
			}

			.subtitle {
				margin-top: 20rpx;
				font-size: 28rpx;
				color: #999999;
			}
		}

		.shortcuts_group {
			margin-top: 60rpx;

			.shortcuts_item {
				padding: 60rpx 30rpx;
				border-radius: 20rpx;
				margin: 15px 0;
				display: flex;
				align-items: center;
				justify-content: space-between;

				.item_info {
					display: flex;
					align-items: center;

					.item_icon {
						width: 90rpx;
						height: 90rpx;
					}

					.item_title {
						margin-left: 30rpx;
						justify-self: flex-start;

						.text {
							font-weight: bold;
							font-size: 32rpx;
						}

						.subtitle {
							margin-top: 20rpx;
							font-size: 28rpx;
							color: #999999;
						}
					}
				}

				.item_more {
					.icon {
						width: 30rpx;
						height: 30rpx;
						border-radius: 100%;
						display: flex;
						align-items: center;
						justify-content: center;
					}
				}

			}
		}
	}
</style>